<%@ page language="java" contentType="text/html; charset=utf-8"%>
<s:set var="queryParam" value="''"></s:set>
<s:iterator value="queryMap.keySet()" id="key" status="st">
	<s:iterator value="queryMap.get(#key)" id="group">
		<s:set var="queryParam" value="#queryParam+'&queryMap.'+#key+'='+#group" />
	</s:iterator>
</s:iterator>
<pg:pager items="${pager.total}" url="table.action" export="offset,currentPageNumber=pageNumber">
	<div id="panelBar">
		<div class="l-panel-bar">
			<div class="l-panel-bbar-inner">
				<div class="l-bar-group">
					<div class="l-bar-button l-bar-btnfirst">
						<span 
							<c:choose>
								<c:when test="${offset==0 }">class="l-disabled"</c:when>
								<c:otherwise><pg:first>url='${pageUrl }<s:property value="#queryParam" escape="false"/>'</pg:first></c:otherwise>
							</c:choose> >
						</span>
					</div>
					<div class="l-bar-button l-bar-btnprev">
						<span class='l-disabled<pg:prev>1'url='${pageUrl}<s:property value="#queryParam" escape="false"/></pg:prev>'></span>
					</div>
				</div>
				<div class="l-bar-separator"></div>
				<div class="l-bar-group">
					<div class="l-bar-button l-bar-btnnext">
						<span class='l-disabled<pg:next>1'url='${pageUrl}<s:property value="#queryParam" escape="false"/></pg:next>'></span>
					</div>
					<div class="l-bar-button l-bar-btnlast">
						<span <c:choose>
								<c:when test="${pager.last}">class="l-disabled"</c:when>
								<c:otherwise><pg:last>url='${pageUrl }<s:property value="#queryParam" escape="false"/>'</pg:last></c:otherwise>
							</c:choose>></span>
					</div>
				</div>
				<div class="l-bar-separator"></div>
				<div class="l-bar-group l-bar-right">
					<span class="l-bar-text">显示记录从${offset+1}到${offset+pager.listSize }，总数${pager.total} 条</span>
				</div>
			</div>
		</div>
	</div>
</pg:pager>
<script type="text/javascript">
	$('.flexigrid').append($("#panelBar").html());
	$(".l-bar-button").bind("mouseover", function() {
		$(this).addClass("l-bar-button-over");
	}).bind("mouseout", function() {
		$(this).removeClass("l-bar-button-over");
	}).bind("click", function() {
		if ($(this).children().attr("url")) {
			window.location.href = $(this).children().attr("url");
		}
	});
</script>
